package com.cxc.chainOfResp;

public class GeneralManager extends Leader {

    public GeneralManager(String name) {
        super(name);
    }

    @Override
    public void handleRequest(LeaveRequest request) {
        if(request.getDay()<107){
            StringBuilder  sb = new StringBuilder();
            sb.append("员工：").
                    append(request.getName()).
                    append("，请假").
                    append(request.getDay()).
                    append("天，请假原因：").
                    append(request.getReason()).
                    append("\n").
                    append("总经理").
                    append(this.name).
                    append("审批通过");
            System.out.println(sb.toString());
        }else{
            System.out.println("这哥们啥情况，想要离职？？");
        }
    }
}
